package org.aurora.model.request;

import org.aurora.model.metadata.SchedulerMetaData;
import org.aurora.remote.protocol.RemoteRequest;
import org.aurora.model.type.RequestCommandType;

import java.io.Serializable;

public class AssignHashSlotsRequest extends RemoteRequest implements Serializable {

    private SchedulerMetaData schedulerMetaData;

    public AssignHashSlotsRequest(SchedulerMetaData schedulerMetaData) {
        this.schedulerMetaData = schedulerMetaData;
    }

    public SchedulerMetaData getSchedulerMetaData() {
        return schedulerMetaData;
    }

    public void setSchedulerMetaData(SchedulerMetaData schedulerMetaData) {
        this.schedulerMetaData = schedulerMetaData;
    }

    @Override
    public int getCommandCode() {
        return RequestCommandType.SCHEDULER_ASSIGN_HASH_SLOTS.getCode();
    }
}
